<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import {initRoute} from './router/index'
export default {
  name:'app',
  created() {
    if(sessionStorage.getItem('token')){
      initRoute()
    }
  }
}
</script>

<style>
  html,body,#app{
    height: 100%;
    width: 100%;
  }
</style>
